# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=onboard
pkgver=1.4.1
pkgrel=6
pkgdesc="On-screen keyboard useful on tablet PCs or for mobility impaired users"
url="https://launchpad.net/onboard"
license="GPL-3.0-only"
arch="all !s390x !riscv64" # blocked by librsvg
depends="python3 hunspell iso-codes py3-cairo py3-dbus py3-gobject3 dbus-x11
	ncurses gsettings-desktop-schemas librsvg"
makedepends="python3-dev py3-setuptools py3-distutils-extra
	bash bash-dev gtk+3.0-dev libxkbfile-dev dconf-dev
	libcanberra-dev hunspell-dev eudev-dev"
source="https://launchpad.net/onboard/${pkgver%.*}/$pkgver/+download/onboard-$pkgver.tar.gz
	glibc-musl-error.patch"
options="!check" # cannot open display
subpackages="$pkgname-doc $pkgname-lang"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

sha512sums="ed75c1dce893e3420ecf532faffb15efc9fba56cf6622b03fe5e1cebb88d32304636b0268e4b8b75dc0eb6d7bfc8602c4a93a90bdeb8cd960d3447d16acc7463  onboard-1.4.1.tar.gz
23742c38f877fc31260d4d7d3ff38c8d72541a77e099183d6633de74bcb223bbd34cedd88016f043867b2571f1196b59a3378a94186b468dbaa7a5d00661065a  glibc-musl-error.patch"
